package com.trkj.service;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.trkj.dao.jpa.IJl_tbdepartmentDAO;
import com.trkj.pojos.Tbdepartment;

@Service
@Transactional
public class JldepartmentService {
	@Autowired 
	private IJl_tbdepartmentDAO departmentDAO;
	public List<Tbdepartment>  usefindALLdepartment(String king){
		return departmentDAO.usefindALLdepartment(king);
	}
	public List<Tbdepartment>  findALLdepartment(){
		return departmentDAO.findALLdepartment();
	}
	public List<Tbdepartment>  idTofindALLdepartment(Long bmid){
		return departmentDAO.idTofindALLdepartment(bmid);
	}
	public List<Tbdepartment>  nameTofindALLdepartment(String departmentName){
		return departmentDAO.nameTofindALLdepartment(departmentName);
	}
}
